package com.danbay.cloud.device.api.dto.electricmeter;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
public class EmConsumptionQueryDto {

    @NotNull(message = "设备deviceId不能为空")
    private String deviceId;

    @NotNull(message = "查询日期不能为空")
    private String date;

    /**
     * 1-日；2-月；3-年
     */
    @Min(value = 1, message = "type不应小于1")
    @Max(value = 3, message = "type不应大于3")
    private Integer type;

}
